package cn.edu.nwafu.hjpg.service.impl;


import cn.edu.nwafu.hjpg.dao.EvaluateDao;
import cn.edu.nwafu.hjpg.entity.Evaluate;
import cn.edu.nwafu.hjpg.service.EvaluateService;
import org.springframework.stereotype.Service;

import java.util.LinkedList;

@Service
public class EvaluateServiceImpl implements EvaluateService {
    final EvaluateDao evaluateDao;

    public EvaluateServiceImpl(EvaluateDao evaluateDao) {
        this.evaluateDao = evaluateDao;
    }

    @Override
    public LinkedList<Evaluate> findAll() {
        return evaluateDao.findAll();
    }

    @Override
    public Evaluate findRLByCasNo(String casNo) {
        return null;
    }

    @Override
    public Evaluate findZJByCasNo(String casNo) {
        return null;
    }

    @Override
    public Evaluate findAllByCasNo(String casNo) {
        return evaluateDao.findAllByCasNo(casNo);
    }

    @Override
    public String addEvaluate(Evaluate evaluate) {
        return evaluateDao.insert(evaluate).getCasNo();
    }


}
